Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected]_py310: remove ref to broken shiboken2 formula #605

Conversation

ipatch
Copy link
Collaborator

@ipatch ipatch commented Oct 29, 2024

brew style freecad/freecad/[NAME_OF_FORMULA_FILE] 

output from running above command should output something similiar to the below

1 file inspected, no offenses detected
  • Have you ensured your commit passed audit checks, ie.
brew audit freecad/freecad/[NAME_OF_FORMULA_FILE] --online --new-formula

Not all PRs require passing these checks ie. adding [no ci] in the commit message will prevent the CI from running but PRs that change formula files generally should run through the CI checks that way new bottles are built and uploaded to the repository thus not having to build all formula from source but rather installing from a bottle (significantly faster 🐰 ... 🐢)

For more information about this template file learn more

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 29, 2024

current build issue,

    Ignored 17 untranslated source text(s)
/Users/chris/tmp/homebrew/freecadA0.21.2_py310-20241029-30815-nuk7yu/FreeCAD-0.21.2/tests/src/Base/Reader.cpp:19:9: error: use of undeclared identifier 'xercesc_3_2'; did you mean 'xercesc_3_3'?
   19 |         xercesc_3_2::XMLPlatformUtils::Initialize();
      |         ^~~~~~~~~~~
      |         xercesc_3_3
/Users/chris/tmp/homebrew/freecadA0.21.2_py310-20241029-30815-nuk7yu/FreeCAD-0.21.2/src/Base/Reader.h:45:1: note: 'xercesc_3_3' declared here
   45 | XERCES_CPP_NAMESPACE_BEGIN
      | ^
/Users/chris/homebrew/opt/xerces-c/include/xercesc/util/XercesDefs.hpp:104:50: note: expanded from macro 'XERCES_CPP_NAMESPACE_BEGIN'
  104 |     #define XERCES_CPP_NAMESPACE_BEGIN namespace XERCES_CPP_NAMESPACE {
      |                                                  ^
/Users/chris/homebrew/opt/xerces-c/include/xercesc/util/XercesVersion.hpp:203:30: note: expanded from macro 'XERCES_CPP_NAMESPACE'
  203 | #define XERCES_CPP_NAMESPACE INVK_CAT3_RAW_NUMERIC_SEP_UNDERSCORE(XERCES_PRODUCT,XERCES_VERSION_MAJOR,XERCES_VERSION_MINOR)
      |                              ^
/Users/chris/homebrew/opt/xerces-c/include/xercesc/util/XercesVersion.hpp:182:56: note: expanded from macro 'INVK_CAT3_RAW_NUMERIC_SEP_UNDERSCORE'
  182 | #define INVK_CAT3_RAW_NUMERIC_SEP_UNDERSCORE(a,b,c)    CAT3_RAW_NUMERIC_SEP_UNDERSCORE(a,b,c)
      |                                                        ^
/Users/chris/homebrew/opt/xerces-c/include/xercesc/util/XercesVersion.hpp:175:50: note: expanded from macro 'CAT3_RAW_NUMERIC_SEP_UNDERSCORE'
  175 | #define CAT3_RAW_NUMERIC_SEP_UNDERSCORE(a, b, c) a ## _ ## b ## _ ## c
      |                                                  ^
<scratch space>:35:1: note: expanded from here
   35 | xercesc_3_3
      | ^

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 29, 2024

built formula locally using locally created patch file to fix the tests related to xercesc version mismatch. and in the process of doing some manual testing with the Draft workbench i discovered if i launch the freecad bin using the absolute path Draft is able to function as it should, below is a copy paste STDOUT from the mac-mini-fpa, hopefully this will further allow me to resolve the runtime issues related to PySide proxy pymodule.

╰─λ l $bp/bin/freecad                                                                                                   0 (0.178s)
lrwxrwxr-x  1 chris  staff    70B Oct 29 15:00 /Users/chris/homebrew/bin/freecad@ -> /Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/MacOS/FreeCAD
╭─chris ssh mac-mini-fpa in /Users/chris/code/freecad-git/hbfc ([email protected]_py310-fix-pyside-runtime ✚1…1⚑3)
╰─λ $bp/bin/freecad                                                                                                     0 (0.013s)
FreeCAD 0.21.2, Libs: 0.21.2RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2023
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

(qt.qpa.fonts) Populating font family aliases took 59 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost.
2024-10-29 15:07:51.503 freecad[51238:15542338] +[IMKClient subclass]: chose IMKClient_Legacy
FALLBACK (log once): Fallback to SW vertex for line stipple
FALLBACK (log once): Fallback to SW vertex processing, m_disable_code: 2000
FALLBACK (log once): Fallback to SW vertex processing in drawCore, m_disable_code: 2000
----------------
GuiCommand: Line
Pick first point
Pick next point
╭─chris ssh mac-mini-fpa in /Users/chris/code/freecad-git/hbfc ([email protected]_py310-fix-pyside-runtime ✚1…1⚑3)
╰─λ freecadcmd                                                                                                       0 (02:57.277)
FreeCAD 0.21.2, Libs: 0.21.2RUnknown
(c) Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2023
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> import sys
>>> print(sys.path)
['/Users/chris/Library/Application Support/FreeCAD/Mod/Curves/./', '/Users/chris/Library/Application Support/FreeCAD/Mod/Curves', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Material', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Import', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Part', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Tux', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/PartDesign', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Measure', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Points', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/AddonManager', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Arch', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Idf', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Inspection', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Robot', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Surface', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/OpenSCAD', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Start', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Sketcher', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Show', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/MeshPart', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Path', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/TechDraw', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Web', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Spreadsheet', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Fem', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Test', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Plot', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/ReverseEngineering', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Draft', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Mesh', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/lib', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Ext', '', '/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python310.zip', '/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10', '/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload', '/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages', '/Users/chris/homebrew/Cellar/[email protected]_py310/5.15.11/lib/python3.10/site-packages', '/Users/chris/homebrew/Cellar/coin3d_py310/4.0.2/lib/python3.10/site-packages', '/Users/chris/homebrew/Cellar/[email protected]_py310/1.26.4/lib/python3.10/site-packages', '/Users/chris/homebrew/Cellar/fc_bundle/0.21.1/libexec/vendor/lib/python3.10/site-packages', '/Users/chris/Library/Application Support/FreeCAD/AdditionalPythonPackages', '/Users/chris/Library/Application Support/FreeCAD/Macro/', '/Users/chris/Library/Application Support/FreeCAD/Macro', '/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Macro', '/Users/chris/Library/Application Support/FreeCAD/Mod']
>>> print("\n".join(sys.path))
/Users/chris/Library/Application Support/FreeCAD/Mod/Curves/./
/Users/chris/Library/Application Support/FreeCAD/Mod/Curves
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Material
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Import
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Part
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Tux
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/PartDesign
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Measure
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Points
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/AddonManager
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Arch
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Idf
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Inspection
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Robot
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Surface
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/OpenSCAD
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Start
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Sketcher
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Show
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/MeshPart
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Path
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/TechDraw
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Web
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Spreadsheet
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Fem
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Test
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Plot
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/ReverseEngineering
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Draft
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Mesh
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/lib
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Ext

/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python310.zip
/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/lib-dynload
/Users/chris/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
/Users/chris/homebrew/Cellar/[email protected]_py310/5.15.11/lib/python3.10/site-packages
/Users/chris/homebrew/Cellar/coin3d_py310/4.0.2/lib/python3.10/site-packages
/Users/chris/homebrew/Cellar/[email protected]_py310/1.26.4/lib/python3.10/site-packages
/Users/chris/homebrew/Cellar/fc_bundle/0.21.1/libexec/vendor/lib/python3.10/site-packages
/Users/chris/Library/Application Support/FreeCAD/AdditionalPythonPackages
/Users/chris/Library/Application Support/FreeCAD/Macro/
/Users/chris/Library/Application Support/FreeCAD/Macro
/Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Macro
/Users/chris/Library/Application Support/FreeCAD/Mod
>>> import PySide
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide'
>>> import PySide
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PySide'
>>> import PySide2
>>> ^D
╭─chris ssh mac-mini-fpa in /Users/chris/code/freecad-git/hbfc ([email protected]_py310-fix-pyside-runtime ✚1…1⚑3)
╰─λ freecad                                                                                                          0 (03:01.831)
FreeCAD 0.21.2, Libs: 0.21.2RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2023
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

(qt.qpa.fonts) Populating font family aliases took 58 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost.
During initialization the error "No module named 'PySide'" occurred in /Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Draft/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PySide'" occurred in /Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Arch/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PySide'" occurred in /Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/AddonManager/InitGui.py
Please look into the log file for further information
During initialization the error "No module named 'PySide'" occurred in /Users/chris/homebrew/Cellar/[email protected]_py310/0.21.2/Mod/Tux/InitGui.py
Please look into the log file for further information
Wizard shaft module cannot be loaded
Involute gear module cannot be loaded
Unknown command 'Std_AddonMgr'
Unknown command 'PartDesign_Sprocket'
2024-10-29 15:14:12.560 freecad[51979:15549926] +[IMKClient subclass]: chose IMKClient_Legacy
╭─chris ssh mac-mini-fpa in /Users/chris/code/freecad-git/hbfc ([email protected]_py310-fix-pyside-runtime ✚1…1⚑3)
╰─λ gs                                                                                                               0 (05:45.129)
On branch [email protected]_py310-fix-pyside-runtime
Changes not staged for commit:
        modified:   Formula/[email protected]_py310.rb

Untracked files:
        patches/new.patch

no changes added to commit
╭─chris ssh mac-mini-fpa in /Users/chris/code/freecad-git/hbfc ([email protected]_py310-fix-pyside-runtime ✚1…1⚑3)
╰─λ $bp/bin/freecad                                                                                                     0 (0.184s)
FreeCAD 0.21.2, Libs: 0.21.2RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2023
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

(qt.qpa.fonts) Populating font family aliases took 54 ms. Replace uses of missing font family "Courier" with one that exists to avoid this cost.
2024-10-29 15:20:50.305 freecad[52756:15557019] +[IMKClient subclass]: chose IMKClient_Legacy

@ipatch
Copy link
Collaborator Author

ipatch commented Oct 29, 2024

note to self, the actual build process of freecad didn't start on the ubuntu runner until ~ 50 minutes after the job was started.

from what i can tell the build fails on the ubuntu github runner around 1 hour and ~ 5 minutes or so.

2024-10-29T19:46:58.4440877Z /tmp/freecadA0.21.2_py310-20241029-24025-18hfuz/FreeCAD-0.21.2/src/Gui/SoFCOffscreenRenderer.cpp:42:11: fatal error: 'GL/glu.h' file not found
2024-10-29T19:46:58.4440976Z    42 | # include <GL/glu.h>
2024-10-29T19:46:58.4441066Z       |           ^~~~~~~~~~
2024-10-29T19:46:58.4441154Z 1 error generated.

this issue is separate from the pyside runtime issue as described in the title of the PR.

@ipatch ipatch added the pr-pull label Oct 29, 2024
github-actions bot pushed a commit that referenced this pull request Oct 29, 2024
@ipatch ipatch closed this Oct 29, 2024
@ipatch ipatch deleted the [email protected]_py310-fix-pyside-runtime branch October 29, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant